package pcloud.client.worker;

import java.io.File;
import java.io.IOException;

import pcloud.client.util.FileResourceInfo;

public class LocalCreateTask extends CloudTask
{

	public LocalCreateTask(FileResourceInfo fileInfo)
	{
		super(fileInfo);
	}
	
	public boolean doWork() throws IOException
	{
		File file = new File(fileInfo.getFullPath());
		return file.mkdirs();
	}

	@Override
	protected boolean inTaskTriggerAfterDoWork()
	{
		return true;
	}

	@Override
	protected boolean inTaskTriggerBeforeDoWork()
	{
		return true;
	}

}
